package com.jmemoir.safe.ratelimit.annotation;

import java.lang.annotation.*;

/**
 * 自定义限流注解
 *
 * @author Tellsea
 * @date 2023/8/14
 */
@Inherited
@Documented
@Target({ElementType.METHOD, ElementType.FIELD, ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
public @interface RateLimit {

    /**
     * 默认每秒最大请求数为10
     *
     * @return
     */
    int value() default 1;
}